/* UTF8 Encoding */
/*-----------------------------------------------------------------------
|                            FILE DESCRIPTION                           |
-----------------------------------------------------------------------*/
/*----------------------------------------------------------------------
  - File name     : music_module.h
  - Author        : liuzhihua (liuzhihuawy@163.com)
  - Update date   : 2024.06.06
  -	Brief         : music module for KT148A
  - Version       : v0.1
-----------------------------------------------------------------------*/
/*-----------------------------------------------------------------------
|                               UPDATE NOTE                             |
-----------------------------------------------------------------------*/
/**
  * Update note:
  * ------------   ---------------   ----------------------------------
  *     Date            Author                      Note
  * ------------   ---------------   ----------------------------------
  *  2024.06.06       liuzhihua                 Create file          
***/

#ifndef __MUSIC_MODULE_H__
#define __MUSIC_MODULE_H__

/*-----------------------------------------------------------------------
|                               INCLUDES                                |
-----------------------------------------------------------------------*/
#include <stdint.h>
#include "gpio.h"

#ifdef  __cplusplus
    extern "C" {
#endif
/*-----------------------------------------------------------------------
|                                DEFINES                                |
-----------------------------------------------------------------------*/


typedef enum music_list_enum_typedef
{
    MUSIC_POWER_ON = 0x01,
    MUSIC_POWER_LOW = 0x02,
    MUSIC_OPEN_DOOR = 0x03,
    MUSIC_CONNECT_WIFI = 0x04,
    MUSIC_CONNECT_BLE = 0x05,


}music_list_e;
/*-----------------------------------------------------------------------
|                                  API                                  |
-----------------------------------------------------------------------*/
void music_module_init(void);
int music_module_play(music_list_e music_code);
int music_module_stopPlay(void);
int music_module_combindPlay(const music_list_e *sequence, uint8_t len);
int music_module_singleLoop(music_list_e music_code);
int music_module_setVolume(uint8_t volume);
int music_module_shutdown(void);
int music_module_powerOn(void);

#ifdef __cplusplus
	}
#endif
#endif
